package com.zkthink.ceres.member.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * FileName: Integral
 * Author:   Pepis
 * Date:   2020  2020/8/29 15:22
 * Description: 实体类 积分类
 **/
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_integral")
@ApiModel(value = "Member", description = "积分信息")
@AllArgsConstructor
@Builder
public class Integral extends Entity<Long> {
    private static final long serialVersionUID = 1L;


    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @TableField("mid")
    @Excel(name = "会员ID")
    private Long mid;

    /**
     * 积分值
     */
    @ApiModelProperty(value = "积分值")
    @TableField("integral_num")
    @Excel(name = "积分值")
    private Long integralNum;

    /**
     * 积分类型
     */
    @ApiModelProperty(value = "积分类型")
    @TableField("type")
    @Excel(name = "积分类型")
    private Integer type;

    @Builder
    public Integral(Long id, LocalDateTime createTime, LocalDateTime updateTime, Long createUser, Long updateUser,
                    Long mid,Long integralNum,Integer type){
        this.id = id;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createUser = createUser;
        this.updateUser = updateUser;
        this.mid = mid;
        this.integralNum = integralNum;
        this.type = type;

    }



}
